public class LookingGlass extends Buff{

	public LookingGlass(int magnitude, int duration){
		this.magnitude = magnitude;
		this.duration = duration;
		this.debuff = true;
	}
	
	public void execute(Card card){
		for(int i=0; i<card.getActives().size(); i++){
			if(card.getActives().get(i).type instanceof EffectActive.AttackCommand || card.getActives().get(i).type instanceof EffectActive.ChainCommand)
				card.getActives().get(i).magnitude = (int)(card.getActives().get(i).magnitude * (this.magnitude/100.0));
		}
	}		
}
